package Test;

public class Test_StringBuffer {
    public static void main(String[] args) {
        StringBuffer sb = new StringBuffer();
        System.out.println(sb.capacity());
        System.out.println(sb.length());
        StringBuffer sb2 = new StringBuffer(50);
        System.out.println(sb2.length());
        System.out.println(sb2.capacity());
        StringBuffer sb3 = new StringBuffer("asdaascawxcaxc");
        System.out.println(sb3.capacity());
        System.out.println(sb3.length());
        StringBuffer s4 = new StringBuffer();
        s4.append("11");
        s4.append("12").append("13").append("14");
        System.out.println(s4);
        s4.insert(1,"aa");
        System.out.println(s4);
        s4.reverse();
        System.out.println(s4);
        s4.replace(1,3,"oo");
        System.out.println(s4);
        s4.delete(1,3);
        String s5 = s4.toString();
        System.out.println(s5);
    }
}
